<!-- pass a variable to included page -->
<%@ page import="SSP.*" %>
<%@ page import="java.text.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<% 
   String today = null;
   Today t = new Today();
   today = t.getToday();
   request.setAttribute("picture","ContactUs");
   request.setAttribute("title", "Question Sent");  
   request.setAttribute("header", "Today is " + today);
 %>

<%@ include file="header.jsp"%>

<TD width="850" vAlign="top"> 
<br /><h3>The answer to your question will be emailed to you soon!!!</h3>
<h4>Here is the data you sent to us.</h4>
<hr />
<%
int CustomerId=Integer.parseInt(request.getParameter("customerid"));
String CustomerName=request.getParameter("customername");
String CustomerTypeDesc=request.getParameter("customertypedesc");
String Street=request.getParameter("billingstreet");
String City=request.getParameter("billingcity");
String FirstName=request.getParameter("contactfirstname");
String LastName=request.getParameter("contactlastname");
String Phone=request.getParameter("contactphone");
String Email=request.getParameter("contactemail");
String Position=request.getParameter("contactposition");
String Zip=request.getParameter("billingzip");
String State=request.getParameter("billingstate");


Customer c = new Customer();
c.setCustomerid(CustomerId);
c.setCustomername(CustomerName);
c.setBillingcity(City);
c.setBillingstreet(Street);
c.setFirstname(FirstName);
c.setLastname(LastName);
c.setPhone(Phone);
c.setEmail(Email);
c.setPosition(Position);
c.setBillingzip(Zip);
c.setBillingstate(State); 

int resultmsg= c.CustomerUpdate();

%> 
<Table width=100%>
<tr><td width=20%>Customer ID:</td><td><%=CustomerId%></td></tr>
<tr><td>Customer Name:</td><td><%=CustomerName%></td></tr>
<tr><td>Customer Type:</td><td><%=CustomerTypeDesc%></td></tr>
<tr><td>Street:</td><td><%=Street%></td></tr>
<tr><td>City:</td><td><%=City%></td></tr>
<tr><td>First Name:</td><td><%=FirstName%></td></tr>
<tr><td>Last Name:</td><td><%=LastName%></td></tr>
<tr><td>Phone:</td><td><%=Phone%></td></tr>
<tr><td>Email:</td><td><%=Email%></td></tr>
<tr><td>Position:</td><td><%=Position%></td></tr>

<%
response.sendRedirect("customerdetails.jsp?customerid="+CustomerId+"&msgid="+resultmsg);
%>	
</table>
<!update the table>
</TD></tr></TABLE></BODY></HTML>